<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>超市订单管理系统</title>
    <link type="text/css" rel="stylesheet" href="/css/style.css"/>
    <link type="text/css" rel="stylesheet" href="/css/public.css"/>
</head>
<body>
<div>
    <!--头部-->
    <header class="publicHeader">
        <h1>超市订单管理系统</h1>
        <div class="publicHeaderR">
            <p><span>下午好！</span><span style="color: #fff21b">admin</span> , 欢迎你！</p>
            <a th:href="@{/logout}">退出</a>
        </div>
    </header>
    <!--时间-->
    <section class="publicTime">
        <span id="time">时间</span>
        <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
    </section>
</div>
<!--主体内容-->
<section class="publicMian">
    <!--左侧导航-->
    <div>
        <div th:insert="~{left :: left}"></div>
    </div>
    <!--右侧内容-->
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>收货地址管理页面</span>
        </div>
        <div class="search">
            <form method="get" action="/address/list">
                <span>所属用户姓名：</span>
                <!--/*@thymesVar id="address" type="cn.niit.smbms.entity.SysUserReceiveAddres"*/-->
                <input name="sysUserName" class="input-text" type="text">
                <span>收货人姓名：</span>
                <input name="receiveName" class="input-text" type="text">
                <input type="hidden" name="page" value="1"/>
                <input value="查询" type="submit" id="searchbutton">
                <a th:href="@{/useraddres/0}">添加收货地址</a>
            </form>
        </div>
        <!--收货人-->
        <table class="providerTable" cellpadding="0" cellspacing="0">
            <tr class="firstTr">
                <th width="5%">收货人ID</th>
                <th width="10%">收货人姓名</th>
                <th width="10%">收货人性别 </th>
                <th width="20%">收货地址</th>
                <th width="10%">收货电话</th>
                <th width="10%">是否默认</th>
                <th width="10%">所属用户姓名</th>
                <th width="15%">操作</th>
            </tr>
            <tr th:each="address,stat : ${addressList}">
                <td>
                    <span th:text="${address.id}"></span>
                </td>
                <td>
                    <span th:text="${address.receiveName}"></span>
                </td>
                <td>
                    <span th:text="${address.sysUserGender}"></span>
                </td>
                <td>
                    <span th:text="${address.receiveAddress}"></span>
                </td>
                <td>
                    <span th:text="${address.receivePhone}"></span>
                </td>
                <td>
                    <span th:text="${address.isDefault}"></span>
                </td>
                <td>
                    <span th:text="${address.sysUserName}"></span>
                </td>
                <td>
                    <span>
                        <a class="addAddress" th:href="@{/useraddres/{userId}/0(userId=${address.sysUserId})}">
                            <img src="/images/tianjia.png" alt="添加" title="添加"/>
                        </a>
                    </span>
                    <span>
                        <a class="modifyAddress" th:href="@{/useraddres/{userId}/{id}(userId=${address.sysUserId}, id=${address.id})}">
                            <img src="/images/xiugai.png" alt="修改" title="修改"/>
                        </a>
                    </span>
                    <span>
                        <a class="deleteAddress" href="#">
                            <img src="/images/schu.png" alt="删除" title="删除"/>
                        </a>
                    </span>
                </td>

            </tr>
        </table>
        <!--分页组件-->
        <!--<div th:replace="pager"></div>-->

    </div>
</section>
<div>
<footer class="footer">
    版权信息
</footer>
<script type="text/javascript" src="/js/time.js"></script>
<script type="text/javascript" src="/js/rollpage.js"></script>
<script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/calendar/WdatePicker.js"></script>
</div>
<script type="text/javascript" src="/js/user.js"></script>
</body>
</html>